<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>ScatterGL - ECHARTS-GL</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes"> <!-- Fullscreen Landscape on iOS -->
    <link rel="stylesheet" href="./common.css">
</head>
<body>
<div id="main"></div>
<script src="../node_modules/echarts/dist/echarts.js"></script>
<script src="../node_modules/echarts/map/js/china.js"></script>
<script src="../dist/echarts-gl.js"></script>
<script src="lib/jquery.min.js"></script>
<script src="js/commonUI.js"></script>
<script>
    var chart = echarts.init(document.getElementById('main'));
    var iconPath = 'path://M292.235-334.88c-0.544-0.205-1.104-0.291-1.65-0.266c0.099-0.433,0.125-0.866,0.086-1.291\
        c-0.139-1.541-1.135-2.941-2.675-3.529c-1.584-0.599-3.302-0.173-4.428,0.948c0.446,0.004,0.898,0.088,1.338,0.256\
        c2.018,0.763,3.03,3.018,2.269,5.035c-0.281,0.743-0.767,1.35-1.364,1.784c-1.029,0.739-2.397,0.968-3.669,0.484\
        c-2.019-0.761-3.031-3.017-2.27-5.035c0.101-0.262,0.227-0.507,0.374-0.739h-0.002c0,0,0,0,0,0.002\
        c0.649-1.015,1.206-2.114,1.65-3.285c3.448-9.107-1.14-19.291-10.249-22.741c-9.111-3.449-19.291,1.139-22.741,10.247\
        c-0.943,2.485-1.285,5.049-1.099,7.537c0.004,0.082,0.012,0.166,0.02,0.25c0.736,8.456,6.184,16.162,14.651,19.367\
        c8.611,3.259,17.962,0.967,24.111-5.104c1.053-1.021,2.641-1.398,4.1-0.847c1.756,0.665,2.749,2.458,2.476,4.241\
        c0.657-0.463,1.189-1.12,1.498-1.932C295.478-331.653,294.391-334.064,292.235-334.88z';

    chart.setOption({
        backgroundColor: '#fff',
        xAxis: {
            type: 'value',
            min: -1,
            max: 1
        },
        yAxis: {
            type: 'value',
            min: -1,
            max: 1
        },
        series: [{
            type: 'scatterGL',
            data: [[0, 0]],
            symbolSize: 120,
            symbol: 'rect',
            itemStyle: {
                borderWidth: 2,
                borderColor: '#000'
            }
        }, {
            type: 'scatterGL',
            data: [[0.5, 0]],
            symbolSize: [240, 200],
            symbol: iconPath,
            itemStyle: {
                borderWidth: 2,
                borderColor: '#000'
            }
        }, {
            type: 'scatterGL',
            data: [[-0.5, 0]],
            symbolSize: [240, 200],
            symbol: 'triangle',
            itemStyle: {
                borderWidth: 2,
                borderColor: '#000'
            }
        }, {
            type: 'scatter',
            data: [{
                value: [-0.5, -0.5],
                symbolSize: 120,
                symbol: 'triangle'
            }, {
                value: [0, -0.5],
                symbolSize: 120,
                symbol: 'rect'
            }, {
                value: [0.5, -0.5],
                symbolSize: [120, 100],
                symbol: iconPath
            }]
        }]
    });
</script>
</body>
</html>
